class EventImage < ActiveRecord::Base
  
  belongs_to :user
  belongs_to :event

      has_attachment :content_type => :image, 
                     :storage => :file_system,
                     :path_prefix => 'public/files/userfiles/events', 
                     :max_size => 3.megabytes,
                     :resize_to => '200x200!',
                     :thumbnails => { :thumb  => '80x80!' }

      validates_as_attachment
end
